package cn.kgc.ssm.enums;

/**
 * @author 课工场
 * @date 2023/10/19
 * @description  枚举 状态码  提示信息
 */

public enum CodeMsg {

    SUCCESS(0,"操作成功"),
    USER_NOT_EXIST(112,"用户名不存在"),
    USER_EXIST(114,"用户名已被占用"),
    PASSWORD_ERROR(113,"密码错误"),
    CODE_ERROR(111,"验证码错误"),
    FAIL(500,"操作失败");

    private String msg;
    private Integer code;

    CodeMsg(Integer code,String msg){
        this.msg = msg;
        this.code =code;
    }

    public String getMsg() {
        return msg;
    }

    public Integer getCode() {
        return code;
    }
}
